<!-- 编辑区域 -->
<div class="lists">
    <!-- 搜索框及工具条 -->
    <div class="c-head-box">
        <ul>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr"><a class="but_blue" href="{:Url('special_add')}">添加专题</a></div>
            </li>
        </ul>
    </div>

    <!--用户列表-->
    <div class="lists-tab-cont">
        <div class="lists-table">
            <table class="pointer" cellpadding="0" cellspacing="0" border="0">
                <thead>
                    <tr>
                        <th style="width: 8%" class="tabSort-header"><a class="tabSort-header-inner"><p>编号</p></a></th>
                        <th style="width: 10%" class="tabSort-header"><a class="tabSort-header-inner"><p>图片</p></a></th>
                        <th style="width: 15%" class="tabSort-header"><a class="tabSort-header-inner"><p>专题名称</p></a></th>
                        <th style="width: 15%" class="tabSort-header"><a class="tabSort-header-inner"><p>跳转目标</p></a></th>
                        <th style="width: 5%" class="tabSort-header"><a class="tabSort-header-inner"><p>排序</p></a></th>
                        <th style="width: 15%" class="tabSort-header"><a class="tabSort-header-inner"><p>备注</p></a></th>
                        <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
                    </tr>
                </thead>
                    <tbody>
                        {foreach name="special_list" item="info"}
                            <tr>
                                <td>{$info.special_id}</td>
                                <td>{:widget('common/Images/img',array($info["special_photo_url"],50,30))}</td>
                                <td>{$info.special_name}</td>
                                <td>{$info.special_go_url}</td>
                                <td>{$info.order_by}</td>
                                <td>{$info.remark}</td>
                                <td>
                                    <a href="{:Url('special_edit',array('special_id'=>$info['special_id']))}" class="blue" >编辑</a>
                                    {switch name="info.is_delete"}
                                    {case value="1"}<a href="{:Url('special_del',array('special_id'=>$info['special_id']))}" class="blue info1" >删除</a>{/case}
                                    {case value="2"}<a href="{:Url('special_reset',array('special_id'=>$info['special_id']))}" class="blue info2"><font color="red">还原</font></a>{/case}
                                    {/switch}
                                </td>
                            </tr>
                        {/foreach}
                    </tbody>
            </table>
        </div>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("a.info1").click(function(){
            if(confirm("您确定要删除该广告吗？")){
                return true;
            }else{
                return false;
            }
        });

        //提示信息
        $("a.info2").click(function(){
            if(confirm("您确定要还原该广告吗？")){
                return true;
            }else{
                return false;
            }
        });
    });
</script>